import request from '@/utils/http'
import type { ILoginParams } from '@/types'


// 登录函数，接收登录参数并发送POST请求
export const login = (payload: ILoginParams) => {
    return request.post('/api/manage/login', payload)
}

// 获取当前管理员信息的函数，发送GET请求
export const getCurrentAdmin = () => {
    return request.get('/api/manage/admin/current')
}